import request from '@/utils/request'

// 查询仪器操作记录列表
export function listOperationRecord(query) {
  return request({
    url: '/instrument/operationRecord/list',
    method: 'get',
    params: query
  })
}

// 查询仪器操作记录详细
export function getOperationRecord(id) {
  return request({
    url: '/instrument/operationRecord/' + id,
    method: 'get'
  })
}

// 新增仪器操作记录
export function addOperationRecord(data) {
  return request({
    url: '/instrument/operationRecord',
    method: 'post',
    data: data
  })
}

// 修改仪器操作记录
export function updateOperationRecord(data) {
  return request({
    url: '/instrument/operationRecord',
    method: 'put',
    data: data
  })
}

// 删除仪器操作记录
export function delOperationRecord(id) {
  return request({
    url: '/instrument/operationRecord/' + id,
    method: 'delete'
  })
}

// 导出仪器操作记录
export function exportOperationRecord(query) {
  return request({
    url: '/instrument/operationRecord/export',
    method: 'get',
    params: query
  })
}